﻿using Abp.Application.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SFGX.Mango.BoxUses
{
	public  interface IBoxUseAppService: IApplicationService
	{
		/// <summary>
	 /// 下单买纸箱
	 /// </summary>
	 /// <param name="boxUse"></param>
	 /// <returns></returns>
		Task BuyBoxAsync(Dto.BuyBoxInput  buyBoxDto);

		/// <summary>
		/// 寄件后 纸箱退费处理
		/// </summary>
		/// <param name="id"></param>
		/// <param name="openId"></param>
		/// <param name="boxUsed"></param>
		/// <returns></returns>
		Task BoxHandlerAsync(int id, string openId, int boxUsed);

		/// <summary>
		/// 获取收派员的纸箱记录
		/// </summary>
		/// <param name="openId"></param>
		/// <returns></returns>
		Task<IReadOnlyList<BoxUse>> GetListAsync(string openId);
	}
}
